package com.tanhua.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
//启动类
/**
 * 查找配置文件，使用默认的
 *  mongodb默认的配置：localhost：27017
 * 排除mongodb的自动装配
 */
@SpringBootApplication(exclude = {
        MongoAutoConfiguration.class,
        MongoDataAutoConfiguration.class
})
@EnableCaching
public class AppServerApplication {

    public static void main(String[] args) {

        SpringApplication.run(AppServerApplication.class,args);
    }
}
